﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8" /><meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<title>
		支付
	</title>
   
    <meta name="MobileOptimized" content="320" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="mobile-web-app-capable" content="yes" /><meta name="screen-orientation" content="portrait" /><meta http-equiv="Cache-Control" content="no-cache,no-store,must-revalidate" /><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Expires" content="0" />
    <!-- For Chrome for Android: -->
    <script src='/public/static/pay/wap/js/A9BB102DC9F7E78AB1FBAEE4773026B2.js' type='text/javascript'></script>
    <meta name="x5-orientation" content="portrait" />
    <meta name="x5-page-mode" content="app" />
    <meta name="apple-touch-fullscreen" content="yes" />
    <link rel='stylesheet' href='/public/static/pay/wap/css/reset.css' type='text/css'/>
    <link rel='stylesheet' href='/public/static/pay/wap/css/style.css' type='text/css'/>
	<script src='/public/static/pay/wap/js/jquery-1.11.3.min.js' type='text/javascript'></script>
</head>
<body style='margin:0;'>
	<header class='header'>
		<h1 class='title'>支付</h1>
	</header>
	<div class='pay-list'>
		<div class='pay-title'>
			<span>订单号：<em>{$data.order_id}</em></span>
		</div>
		<div class='pay-price'>
			<span class='pay-shang'>订单信息：<em>{$data.name}</em></span>
			<span class='pay-qian'>￥{$data.money}</span>
		</div>
		<p class='pay-details'><span>订单详情</span></p>
	</div>
	<div class='pay-form'>
		<p class='pay-type'>快捷支付：</p>
		<span class='pay-type-list'>
		<input type='radio' name="pd_FrpId"  value="1" id="a1">
			<label for='a1' id="label1"><img src='/public/static/pay/wap/img/alipay.png'></label>
		</span>
		<span class='pay-type-list'><input type='radio'checked name="pd_FrpId" value="2" id="a2">
		<label for='a2' id="label2"><img src='/public/static/pay/wap/img/logo_wxpay.png'>
		</label></span>
		
		
		<p class='pay-btn'><button type='button' onClick="pays();">确认支付</button></p>
	</div>

	<script src="/public/static/pay/wap/js/jquery.js"></script>
	<script>
	function pays(){
	
		var  paytype  = $('input[name="pd_FrpId"]:checked').val();
		
		if(paytype==2){
		
			var url = 'http://{$base_url}/Home/OAuth/Pay/Addon/WeiXin/id/{$data.order_id}'
			window.location.href = url;
		
		
		}else if(paytype==1){
			
			var url = 'http://{$base_url}/Pay/Orders/WapAliPay/id/{$data.order_id}'
			window.location.href = url;
		
		}
			
		
		
		
	}


</script>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
</body>
</html>